 {extend name="layout:base" /}{block name="content"}

 <?php
$global=isSupperManagerForSession();
 ?>
 <link rel="stylesheet" type="text/css" href="/static/My97DatePicker/skin/WdatePicker.css" />
     <script charset="utf-8" src="/static/My97DatePicker/WdatePicker.js"></script>
<style type="text/css">
  .yg_inp>input{margin-bottom: 10px;}
#zc_detail table{margin:10px;}
#zc_detail table tr td{
	border: 1px solid #ddd;
	height:40px;
	line-height:40px;
	padding-left:5px;
	padding-right:5px;
} 
.ordertable input {width:90%;}
.policeLable{padding:2px 4px;margin-left:4px;}
#taskDate .taskDateItem{
	width:100%;height:40px;line-height:40px;margin:4px 0px;
}
#taskDate .taskDateItem .taskDateItemLeft{width:10%;float:left;}
#taskDate .taskDateItem .taskDateItemRight1{width:70%;float:left;border:1px solid #139667;height: 42px;}
#taskDate .taskDateItem .taskDateItemRight2{width:20%;float:right;}
#taskDate .taskDateItem .opUsers img{width:22px;margin-left:5px;}

#taskDate .taskDateItem .itemUser{padding: 4px 6px;background:#139667;margin-left:4px;color:white;}
#taskDate .taskDateItem .clear{clear:both;width:0px;height:0px;overflow:hidden;}
#taskDate .taskDateItem .jia,#taskDate .taskDateItem .jian{font-size:30px;cursor:pointer;font-weight:800;margin-left:5px;}

</style>

<!--引入JS-->
<script type="text/javascript" src="/static/admin/js/ajaxfileupload.js?t=1"></script>


 
<section class="topBanners">
         <div class="icon"></div>
         <div class="topBannersNav">
        <span data-url="/admin/newstype/lists" onclick="ContentLoadGo('/admin/newstype/lists')">栏目管理</span>
         >
         <span data-url="/admin/newstype/addData"  onclick="ContentLoadGo('/admin/newstype/addData')"  >栏目添加</span>
         
         </div>
      </section>
 <section id="zc_detail">

      
  
   <table class="ordertable" border="0" style="width:90%;" cellspacing="0" cellpadding="0">

	
     <tr>
       
       <td style="width:10%;"><div align="right">栏目名称</div></td>
       <td style="widdth:90%;"  class="tr_cons">
       <input type="text" name="e-name" id="e-name" value="" placeholder="栏目名称" class="textbox" style="padding:0px;" />
       </td>
     
       </tr>
       
         <tr>
       
       <td style="width:10%;"><div align="right">排序</div></td>
       <td style="widdth:90%;"  class="tr_cons">
       <input type="text" name="e-sorts" id="e-sorts" value="0" placeholder="排序" class="textbox" style="padding:0px;width:80px;" />
       <font style="color:red;">提示：从小到大，升序</font>
       </td>
     
       </tr>
      
     <tr>
       <td colspan="8" style="height:50px;text-align:center;">
       
     
     
	    <input type="button" power="70000"  style="width:80px;margin-top:4px;margin-bottom:4px;padding:0px;" value="添加" class="link_btn add"/>
     

       </td>
     </tr>
     
     
   </table>

     
     </section>
     
     
       <script type="text/javascript">
  
   
    
      
           $(function(){
        	   var gnum=0;
        	   var lastObj;
        	
			
          	//编辑项
          	    $(".add").unbind().bind("click",function(){
          	    	
          	     var that =this;
           		 var url="/admin/newstype/addData";
           		
           		 var name=$("#e-name").val();
           		var sorts=$("#e-sorts").val();
        		if(name=="")
         		{
         			ErrTiShi("栏目不能够为空");return false;
         		}
        		
        		var param={
            		    name:name,
            		    sorts:sorts,
    				    sys_opt:'addData'//后台判断编辑操作
    		        };
           		//alert(JSON.stringify(param));return false;
           		    
        			 AjaxRequest(url,param,function(data){
          			   if(data.err==0)
          			   {
          				   SuccessTiShi("操作成功");
          				   ContentLoadGo("/admin/newstype/lists");
          			   }
          			   else
          			   {
          				   ErrTiShi(data.msg);
          			   }
          		   	});
          			
          	   });
        	   
          	 
        	
        
        	   
        	  
  		
  				$("#all").click(function(){   
			    	if(this.checked){   
			        	$(".checkBoxInput").attr("checked", true);  
			        	$(".checkBoxInput").prop("checked", true);  
			    	}else{   
						$(".checkBoxInput").attr("checked", false);
						$(".checkBoxInput").prop("checked", false);
			    	}   
			    	var se=getAllSelectItem();
			    	//console.log(se);
			 	}); 
  				 //导航
         	   $(".topBannerItem").click(function(){
         		   var attArr = $(this).attr();
             	   goToSelfLink(attArr);
         	   });
  			   
           });
           
	  </script>
	  	  
	  {/block}
	  